<?php 
$data['page_selected'] = 'home';
$this->load->view('constants/header', $data);?>

<?php if(isset($msg)){ ?>
	<script type="text/javascript">
		alert('<?php echo $msg; ?>');
	</script>
<?php } ?>

<div id="site_content">
	<?php $this->load->view('constants/sidebar'); ?> 
    <div id="content">    	
        <h3 align="center">Cambio de contrase&ntilde;a</h3>
        
        <form method="post" action="<?php echo base_url(); ?>user/change_password">
            <table style="background:none;" align="center">
            	<tr>
                	<td style="background:none;" width="120px">Contrase&ntilde;a actual</td>
                    <td style="background:none;"><input type="password" name="currentPassword" id="currentPassword"></td>
					<td style="background:none;"><?php echo form_error('currentPassword'); ?></td>
                </tr>
            	<tr>
                	<td style="background:none;" width="120px">Nueva contrase&ntilde;a</td>
                    <td style="background:none;"><input type="password" name="password" id="password"></td>
					<td style="background:none;"><?php echo form_error('password'); ?></td>
                </tr>
                <tr>
                	<td style="background:none;" width="120px">Repetir contrase&ntilde;a</td>
                    <td style="background:none;"><input type="password" name="passwordConf" id="passwordConf"></td>
					<td style="background:none;"><?php echo form_error('passwordConf'); ?></td>
                </tr>
                <tr>
                	<td colspan="3" style="background:none;"><input type="submit" name="button" class="submit" value="Procesar" /></td>
                </tr>
            </table>
        </form>
        
    </div>
</div>
<?php $this->load->view('constants/footer'); ?>